package com.axxc.jpa.entity.eleme;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Index;
import javax.persistence.Table;

@Entity
@Table(name = "sc_takeout_order", indexes = { @Index(columnList = "orderId", name = "index_order_id"),
		@Index(columnList = "merchantId", name = "index_merchant_id") })
public class ScTakeoutOrder {

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(columnDefinition = "int(11) comment '表主键'")
	private Long id;// 主键
	@Column(columnDefinition = "varchar(255) comment '订单号'")
	private String orderId; // 订单号
	@Column(columnDefinition = "varchar(255) comment '订单来源'")
	private String orderFrom; // 订单来源
	@Column(columnDefinition = "varchar(255) comment '联系人'")
	private String linkName;// 联系人
	@Column(columnDefinition = "varchar(255) comment '联系手机号'")
	private String linkPhone;// 联系手机号
	@Column(columnDefinition = "int(8) comment '商品总数'")
	private Integer productTotal; // 商品总数,
	@Column(columnDefinition = "double(12,2) comment '商品总价'", precision = 12, scale = 2)
	private Double totalPrice;// 商品总价
	@Column(columnDefinition = "double(12,2) comment '订单原始价格'", precision = 12, scale = 2)
	private Double originalPrice;// 订单原始价格
	@Column(columnDefinition = "double(12,2) comment '店铺实收'", precision = 12, scale = 2)
	private Double income; // 店铺实收
	@Column(columnDefinition = "varchar(255) comment '订单创建时间'")
	private String createdTime;// 订单创建时间
	@Column(columnDefinition = "varchar(255) comment '订单生效时间'")
	private String activeTime; // 订单生效时间
	@Column(columnDefinition = "double(12,2) comment '配送费'", precision = 12, scale = 2)
	private Double deliverFee; // 配送费
	@Column(columnDefinition = "double(12,2) comment '会员减配送费'", precision = 12, scale = 2)
	private Double vipDeliveryFeeDiscount; // 会员减配送费
	@Column(columnDefinition = "varchar(255) comment '预计送达时间'")
	private String deliverTime; // 预计送达时间
	@Column(columnDefinition = "text comment '订单备注'")
	private String description; // 订单备注
	@Column(columnDefinition = "integer(1) comment '是否在线支付,0=不是,1=是 '")
	private Integer onlinePaid; // 是否在线支付
	@Column(columnDefinition = "varchar(255) comment '顾客送餐地址'")
	private String address;// 顾客送餐地址
	@Column(columnDefinition = "varchar(255) comment '外卖商铺Id'")
	private String takeoutShopId; // 外卖商铺Id
	@Column(columnDefinition = "varchar(255) comment '商户Id'")
	private String merchantId; // 商户Id
	@Column(columnDefinition = "varchar(255) comment '店铺当日订单流水号'")
	private String daySn; // 店铺当日订单流水号
	@Column(columnDefinition = "varchar(255) comment '退单状态'")
	private String refundStatus; // 退单状态
	@Column(columnDefinition = "varchar(255) comment '订单收货地址经纬度(高德地图坐标系)'")
	private String deliveryGeo; // 订单收货地址经纬度(高德地图坐标系)
	@Column(columnDefinition = "double(12,2) comment '饿了么服务费率'", precision = 12, scale = 2)
	private Double serviceRate;// 饿了么服务费率
	@Column(columnDefinition = "double(12,2) comment '饿了么服务费'", precision = 12, scale = 2)
	private Double serviceFee; // 饿了么服务费
	@Column(columnDefinition = "double(12,2) comment '餐盒费'", precision = 12, scale = 2)
	private Double packageFee; // 餐盒费
	@Column(columnDefinition = "int(5) comment '订单类型,-1=订单无效,0=待处理,1=已接单,2=待配送,3=配送中,4=配送成功'")
	private Integer type; // 订单类型

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getOrderId() {
		return orderId;
	}

	public void setOrderId(String orderId) {
		this.orderId = orderId;
	}

	public String getOrderFrom() {
		return orderFrom;
	}

	public void setOrderFrom(String orderFrom) {
		this.orderFrom = orderFrom;
	}

	public String getLinkName() {
		return linkName;
	}

	public void setLinkName(String linkName) {
		this.linkName = linkName;
	}

	public String getLinkPhone() {
		return linkPhone;
	}

	public void setLinkPhone(String linkPhone) {
		this.linkPhone = linkPhone;
	}

	public Integer getProductTotal() {
		return productTotal;
	}

	public void setProductTotal(Integer productTotal) {
		this.productTotal = productTotal;
	}

	public Double getTotalPrice() {
		return totalPrice;
	}

	public void setTotalPrice(Double totalPrice) {
		this.totalPrice = totalPrice;
	}

	public Double getOriginalPrice() {
		return originalPrice;
	}

	public void setOriginalPrice(Double originalPrice) {
		this.originalPrice = originalPrice;
	}

	public Double getIncome() {
		return income;
	}

	public void setIncome(Double income) {
		this.income = income;
	}

	public String getCreatedTime() {
		return createdTime;
	}

	public void setCreatedTime(String createdTime) {
		this.createdTime = createdTime;
	}

	public String getActiveTime() {
		return activeTime;
	}

	public void setActiveTime(String activeTime) {
		this.activeTime = activeTime;
	}

	public Double getDeliverFee() {
		return deliverFee;
	}

	public void setDeliverFee(Double deliverFee) {
		this.deliverFee = deliverFee;
	}

	public Double getVipDeliveryFeeDiscount() {
		return vipDeliveryFeeDiscount;
	}

	public void setVipDeliveryFeeDiscount(Double vipDeliveryFeeDiscount) {
		this.vipDeliveryFeeDiscount = vipDeliveryFeeDiscount;
	}

	public String getDeliverTime() {
		return deliverTime;
	}

	public void setDeliverTime(String deliverTime) {
		this.deliverTime = deliverTime;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Integer getOnlinePaid() {
		return onlinePaid;
	}

	public void setOnlinePaid(Integer onlinePaid) {
		this.onlinePaid = onlinePaid;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getTakeoutShopId() {
		return takeoutShopId;
	}

	public void setTakeoutShopId(String takeoutShopId) {
		this.takeoutShopId = takeoutShopId;
	}

	public String getMerchantId() {
		return merchantId;
	}

	public void setMerchantId(String merchantId) {
		this.merchantId = merchantId;
	}

	public String getDaySn() {
		return daySn;
	}

	public void setDaySn(String daySn) {
		this.daySn = daySn;
	}

	public String getRefundStatus() {
		return refundStatus;
	}

	public void setRefundStatus(String refundStatus) {
		this.refundStatus = refundStatus;
	}

	public String getDeliveryGeo() {
		return deliveryGeo;
	}

	public void setDeliveryGeo(String deliveryGeo) {
		this.deliveryGeo = deliveryGeo;
	}

	public Double getServiceRate() {
		return serviceRate;
	}

	public void setServiceRate(Double serviceRate) {
		this.serviceRate = serviceRate;
	}

	public Double getServiceFee() {
		return serviceFee;
	}

	public void setServiceFee(Double serviceFee) {
		this.serviceFee = serviceFee;
	}

	public Double getPackageFee() {
		return packageFee;
	}

	public void setPackageFee(Double packageFee) {
		this.packageFee = packageFee;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

}